package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class Studentreg implements Serializable {
    private Integer srid;

    private Integer regno;

    private Date regday;

    private String sno;

    private static final long serialVersionUID = 1L;

    public Integer getSrid() {
        return srid;
    }

    public void setSrid(Integer srid) {
        this.srid = srid;
    }

    public Integer getRegno() {
        return regno;
    }

    public void setRegno(Integer regno) {
        this.regno = regno;
    }

    public Date getRegday() {
        return regday;
    }

    public void setRegday(Date regday) {
        this.regday = regday;
    }

    public String getSno() {
        return sno;
    }

    public void setSno(String sno) {
        this.sno = sno;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Studentreg other = (Studentreg) that;
        return (this.getSrid() == null ? other.getSrid() == null : this.getSrid().equals(other.getSrid()))
            && (this.getRegno() == null ? other.getRegno() == null : this.getRegno().equals(other.getRegno()))
            && (this.getRegday() == null ? other.getRegday() == null : this.getRegday().equals(other.getRegday()))
            && (this.getSno() == null ? other.getSno() == null : this.getSno().equals(other.getSno()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSrid() == null) ? 0 : getSrid().hashCode());
        result = prime * result + ((getRegno() == null) ? 0 : getRegno().hashCode());
        result = prime * result + ((getRegday() == null) ? 0 : getRegday().hashCode());
        result = prime * result + ((getSno() == null) ? 0 : getSno().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", srid=").append(srid);
        sb.append(", regno=").append(regno);
        sb.append(", regday=").append(regday);
        sb.append(", sno=").append(sno);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}